const redis = require('redis')

const host = 'localhost'
const port = 6379
const client = redis.createClient(port, host, {});

client.on('ready', (res) => {
    console.log('redis is running on 6379 and ' + res);
})

client.on('error', (err) => {
    console.log('connect error: ' + err);
})